package com.hsc.yalebao.adapter;

import android.content.Context;
import android.content.res.Resources;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.BaseAdapter;
import android.widget.TextView;
import com.hsc.yalebao.model.GetVipListProfitListBaseBean;
import java.text.DecimalFormat;
import java.util.ArrayList;
import java.util.HashMap;

public class GetVipListProfitListAdapter extends BaseAdapter
{
  String TAG = "ReturnwaterListAdapter";
  int colorGreen = -1;
  int colorRed = 0;
  private Context context;
  int count = 1;
  ViewHolder holder = null;
  private LayoutInflater inflater;
  private ArrayList<GetVipListProfitListBaseBean> list;
  HashMap<Integer, View> mapView = new HashMap();
  private Resources resources = null;

  public GetVipListProfitListAdapter(Context paramContext, ArrayList<GetVipListProfitListBaseBean> paramArrayList)
  {
    this.context = paramContext;
    this.inflater = LayoutInflater.from(paramContext);
    this.list = paramArrayList;
    this.resources = paramContext.getResources();
    this.colorGreen = this.resources.getColor(2131165336);
    this.colorRed = this.resources.getColor(2131165214);
  }

  public int getCount()
  {
    if (this.list == null)
      return 0;
    return this.list.size();
  }

  public Object getItem(int paramInt)
  {
    return this.list.get(paramInt);
  }

  public long getItemId(int paramInt)
  {
    return paramInt;
  }

  public View getView(int paramInt, View paramView, ViewGroup paramViewGroup)
  {
    if (paramView == null)
    {
      this.holder = new ViewHolder();
      paramView = this.inflater.inflate(2130903156, null);
      this.holder.tv_time = ((TextView)paramView.findViewById(2131099850));
      this.holder.tv_num = ((TextView)paramView.findViewById(2131100132));
      this.holder.tv_num1 = ((TextView)paramView.findViewById(2131100133));
      this.holder.tv_statu = ((TextView)paramView.findViewById(2131100134));
      paramView.setTag(this.holder);
    }
    GetVipListProfitListBaseBean localGetVipListProfitListBaseBean;
    while (true)
    {
      localGetVipListProfitListBaseBean = (GetVipListProfitListBaseBean)this.list.get(paramInt);
      if (localGetVipListProfitListBaseBean != null)
        break;
      return paramView;
      this.holder = ((ViewHolder)paramView.getTag());
    }
    new DecimalFormat(".0");
    this.holder.tv_time.setText(localGetVipListProfitListBaseBean.getNick_name());
    this.holder.tv_statu.setText(localGetVipListProfitListBaseBean.getPrice());
    if (localGetVipListProfitListBaseBean.getUserstatus() >= 0)
    {
      this.holder.tv_num.setText("满足");
      return paramView;
    }
    this.holder.tv_num.setText("未满足");
    return paramView;
  }

  public void setData(ArrayList<GetVipListProfitListBaseBean> paramArrayList)
  {
    this.list = paramArrayList;
  }

  public class ViewHolder
  {
    private TextView tv_num;
    private TextView tv_num1;
    private TextView tv_statu;
    public TextView tv_time;

    public ViewHolder()
    {
    }
  }
}

/* Location:           C:\Users\user\Desktop\dd28_pcdd720\classes_dex2jar.jar
 * Qualified Name:     com.hsc.yalebao.adapter.GetVipListProfitListAdapter
 * JD-Core Version:    0.6.2
 */